projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ffe73c
)
*** empty log message ***
author
Fred Pierresteguy
<F.Pierresteguy@frcl.bull.fr>
Tue, 15 Feb 1994 13:54:14 +0000
(13:54 +0000)
committer
Fred Pierresteguy
<F.Pierresteguy@frcl.bull.fr>
Tue, 15 Feb 1994 13:54:14 +0000
(13:54 +0000)
lwlib/lwlib-Xlw.c
patch
|
blob
|
history
diff --git
a/lwlib/lwlib-Xlw.c
b/lwlib/lwlib-Xlw.c
index 893833efca3b31f5cc4df6cb8cd209311a53d89f..d34a012ae3cb3569e96073d4395e2b4aa2d84c57 100644
(file)
--- a/
lwlib/lwlib-Xlw.c
+++ b/
lwlib/lwlib-Xlw.c
@@
-75,7
+75,15
@@
static Widget
xlw_create_menubar (instance)
widget_instance* instance;
{
- Widget widget =
+ Widget widget;
+
+ widget_value *tem = (widget_value *) XtMalloc (sizeof (widget_value));
+
+ /* _XtCreate is freeing the object we passed,
+ so make a copy that we free later. */
+ bcopy (instance->info->val, tem, sizeof (widget_value));
+
+ widget =
XtVaCreateWidget (instance->info->name, xlwMenuWidgetClass,
instance->parent,
XtNmenu, instance->info->val,